/*var now = new Date();
var days = new Array(
'Sunday','Monday','Tuesday',
'Wednesday','Thursday','Friday','Saturday');
var months = new Array(
'January','February','March','April','May',
'June','July','August','September','October',
'November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number)	{
return (number < 1000) ? number + 1900 : number;}
today =  days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear()));
document.write(today);

//slideshow code
var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;

if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}*/
  
//for send Mail
	var a=""; 
	function loadfunction()
	{  
		a=String(Math.round(Math.random()*8+1));
		a+=String(Math.round(Math.random()*8+1));
		a+=String(Math.round(Math.random()*8+1));
		a+=String(Math.round(Math.random()*8+1));
		document.getElementById('no').value=a;
	}
	function Trim(str) 
	{
		return str.replace(/\s/g,"");
	}
	function IsBlank(obj, msgstr)
	{
		if(Trim(obj.value)=="")
		{
			alert(msgstr);
			obj.focus();
			return false;
		}
		return true;
	}
	function IsEmail(obj, string, varmessage) 
	{
		if(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
			return true;
		else
		{
			alert(varmessage);
			obj.focus();
			return false;
		}
	}
	function CheckNo(ob, msg)
	{
		if(ob.value==a){
			return true;
		}
		else{
			alert(msg);
			ob.focus();
			return false;
		}
	}
	function valid()
	{
		if(document.form1.name.value=="Name")
		{
			alert("Please enter your Name");
			document.form1.name.value="";
			document.form1.name.focus();
			return false;
		}
		if(document.form1.email.value=="Email")
		{
			alert("Please enter Valid Email");
			document.form1.email.value="";
			document.form1.email.focus();
			return false;
		}
		if (!IsBlank(document.form1.name,"Please enter your Name")) return false;
		if (!IsEmail(document.form1.email, document.form1.email.value,"Please enter valid Email")) return false;
		if(document.form1.comments.value=="Your description here...")
		{
			alert("Please enter Description");
			document.form1.comments.value="";
			document.form1.comments.focus();
			return false;
		}
		if (!IsBlank(document.form1.comments,"Please Insert Description")) return false;
		if (!CheckNo(document.form1.confirmno,"Please Enter Same No as above")) return false;
		return true;
	}