// 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:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'After I put my profile on your website I met someone im now about to marry.' - <strong>Adam</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        

ArrayText[1] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'We have just done nikaah after meeting on your site back in Janaury.' - <strong>elisha</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        
                                                     
ArrayText[2] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'Thanks to islamicfaces.com for helping me find my future wife.' - <strong>asif</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        

                                                     
ArrayText[3] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'Mashallah ive met my perfect partner your site.' - <strong>Liyahh</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        

                                                     
ArrayText[4] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'I was surprised by how many compatible matches there were on the website.' - <strong>Nat</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";                                 

ArrayText[5] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'I have been successful in finding a partner on islamicfaces.com. Keep up the good work.' - <strong>Abdul T</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        
                                                     
ArrayText[6] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'Was fed up of my parents introducing me to unsuitable people which motivated me to join Islamic Faces.' - <strong>naz</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        
                                                     
                                                     
ArrayText[7] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'Jazak allah I have met someone on here.' - <strong>Saeda</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";         

                                                     
ArrayText[8] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'Allhumdullah thanks to the site I have now met the right companion.' - <strong>Aliyah</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        
                                                     
ArrayText[9] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'I met my partner from islamic Faces. Im from the US and my partner is from London.' - <strong>Mo</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        
                                                     
ArrayText[10] = "<div style='width:350px;'><div style='float:left; margin-top:5px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>'Weve just booked our wedding after meeting on islamicfaces.com.' - <strong>Rubina</strong></a><div><strong style='margin-left:190px;'><a href='/struts/1muslsuccessstories.html' class='testlink'>More Success Stories >> </a></strong></div></div></div>";        

		
        document.getElementById("divText").innerHTML = ArrayText[randomnumber];
        //document.getElementById("imgText").src = "images/" + randomnumber + ".jpg";
        
    };