// JavaScript Document
function doMouseOver(obj){
  obj.bgColor= "#333333";

}
function doMouseOut(obj){
  obj.bgColor= "#535353";

}

function valInteger(id){
  var value =  document.getElementById(id).value; 	
  if(value == "" || isNaN(parseInt(value))  ){
	return false;							   
  }else{
	return true;
  }
}

function value(id){
  return document.getElementById(id).value; 	
  
}

function valueByInt(id){
  return parseInt(document.getElementById(id).value); 	
  
}

function valStringNotNull(id)
{
  return document.getElementById(id).value != "";	
}

function valStringMinLength(id, length)
{
  return document.getElementById(id).value.length >= length;
  	
}

function valEmail(id){      
    var obj = document.getElementById(id);
    var myReg = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;     
    return (myReg.test( obj.value )) ;
}  

function show(id){
   
 // document.getElementById(id).style.visibility = 'visible';	
  document.getElementById(id).style.display = 'block';	
}

function hide(id){
	
 	
  document.getElementById(id).style.display = 'none';		
}

function setContent(id, content){
	document.getElementById(id).innerHTML = content;
	
	
}

// date 
var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31,30, 31, 30, 31); 
function getDays(month, year) { 
  if (1 == month) return ((0 == year % 4) && (0 != (year % 100))) ||(0 == year % 400) ? 29 : 28; 
  else return daysInMonth[month]; 
}

function valDate(day, month, year){
  return day <= getDays(month, year)  ;
	  
  
}

//set text
window.onload = function() {

        var randomnumber = Math.floor(Math.random() * 11)
        var ArrayText = new Array();
ArrayText[0] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'I would like to take this opportunity to thank hindufaces.com for helping me found my life partner.'</a> - <strong>minisha</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";
                                               
ArrayText[1] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'My daughter Heena has met someone from your website and will be getting married in 2 months.'</a> - <strong>Ms Chauhan</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";                                 

ArrayText[2] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'I met someone on the website and we clicked. Were now getting married. Thanks to everyone at hindufaces.com.'</a> - <strong>kajal</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";
                                               
ArrayText[3] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'I have now met someone after a lot of searching thanks to Hindu Faces.'</a> - <strong>bhav</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";
                                               
ArrayText[4] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'I have been successful in finding a wife on hindufaces.com.'</a> - <strong>Prem</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";

                                               
ArrayText[5] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'Thanks to hindufaces.com for helping me find my partner.'</a> - <strong>Nisha P</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";

                                               
ArrayText[6] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'My son is now getting married after we found his bride on hindufaces.com. Thank you for your excellent service.'</a> - <strong>Surena & Pritesh</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";
                   
ArrayText[7] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'Weve just announced our engagement to the family and would like to thanks Hindu faces for setting us up.'</a> - <strong>Ravi & Mini</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";
                                               
ArrayText[8] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'As soon as I saw her picture I knew she was the one. Fortunately she liked my picture too and we met up soon afterwards.'</a> - <strong>sanj</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";

ArrayText[9] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'After only 3 weeks ive met someone and things are progressing well.'</a> - <strong>sheetal</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";
                                               
ArrayText[10] = "<div style='width:420px;'><div style='float:left;padding-top:8px;'><a href='/struts/1hndusuccessstories.html' class='testlink'>'Thanks to your website I have now found a partner.'</a> - <strong>Raj</strong><strong style='margin-left:1px; float:left;'><br><a href='/struts/1hndusuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div>";		
        document.getElementById("divText").innerHTML = ArrayText[randomnumber];
        //document.getElementById("imgText").src = "images/" + randomnumber + ".jpg";
        
    };