//Change Images

function changeIt(objName)
{
	//The image object accessed through its id we mentioned in the DIV block which is going to be visible currently
	var obj = document.getElementById(objName);
	
	//An array that hold the IDs of images that we mentioned in their DIV blocks
	var objId = new Array();
	
	//Storing the image IDs into the array starts here
	objId[0] = "image1";
	objId[1] = "image2";
	//Storing the image IDs into the array ends here
	
	//A counter variable going to use for iteration
	var i;
	
	//A variable that can hold all the other object references other than the object which is going to be visible
	var tempObj;
	
	//The following loop does the display of a single image based on its ID. The image whose ID we passed into this function will be the
	//only image that is displayed rest of the images will be hidden based on their IDs and that part has been handled by the else part
	//of the if statement within this loop.
	for(i=0;i<objId.length;i++)
	{
		if(objName == objId[i])
		{
			obj.style.display = "block";
		}
		else
		{
			tempObj = document.getElementById(objId[i]);
			tempObj.style.display = "none";	
		}
	}
	return;	
}
function changeIt1(objName)
{
	//The image object accessed through its id we mentioned in the DIV block which is going to be visible currently
	var obj = document.getElementById(objName);
	
	//An array that hold the IDs of images that we mentioned in their DIV blocks
	var objId = new Array();
	
	//Storing the image IDs into the array starts here
	objId[0] = "image3";
	objId[1] = "image4";
	//Storing the image IDs into the array ends here
	
	//A counter variable going to use for iteration
	var i;
	
	//A variable that can hold all the other object references other than the object which is going to be visible
	var tempObj;
	
	//The following loop does the display of a single image based on its ID. The image whose ID we passed into this function will be the
	//only image that is displayed rest of the images will be hidden based on their IDs and that part has been handled by the else part
	//of the if statement within this loop.
	for(i=0;i<objId.length;i++)
	{
		if(objName == objId[i])
		{
			obj.style.display = "block";
		}
		else
		{
			tempObj = document.getElementById(objId[i]);
			tempObj.style.display = "none";	
		}
	}
	return;	
}

//Check Form

<!--
function VF_form_contact(){
	var theForm = document.form_contact;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var errMsg = "";
	var setfocus = "";

	if (theForm['message'].value == ""){
		errMsg = "Please fill your message";
		setfocus = "['message']";
	}
	if (!emailRE.test(theForm['email'].value)){
		errMsg = "please fill your email";
		setfocus = "['email']";
	}
	if (theForm['tel'].value == ""){
		errMsg = "please fill your telephone";
		setfocus = "['tel']";
	}
	if (theForm['name'].value == ""){
		errMsg = "please fill your name";
		setfocus = "['name']";
	}
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()"); return false;
	}
	else theForm.submit();
}//-->

<!--
function VF_form_opt_in(){
	var theForm = document.form_opt_in;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var errMsg = "";
	var setfocus = "";

	if (!emailRE.test(theForm['email'].value)){
		errMsg = "please fill your email";
		setfocus = "['email']";
	}
	if (theForm['tel'].value == ""){
		errMsg = "please fill your telephone";
		setfocus = "['tel']";
	}
	if (theForm['name'].value == ""){
		errMsg = "please fill your name";
		setfocus = "['name']";
	}
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()"); return false;
	}
	else theForm.submit();
}//-->

<!--
function VF_form_forgot(){
	var theForm = document.form_forgot;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var errMsg = "";
	var setfocus = "";

	if (!emailRE.test(theForm['email'].value)){
		errMsg = "please fill your email";
		setfocus = "['email']";
	}
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()"); return false;
	}
	else theForm.submit();
}//-->

<!--
function VF_form_register(){
	var theForm = document.form_register;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var errMsg = "";
	var setfocus = "";

	if (theForm['message'].value == ""){
		errMsg = "Please fill your message";
		setfocus = "['comment']";
	}
	if (!emailRE.test(theForm['email'].value)){
		errMsg = "please fill your email";
		setfocus = "['email']";
	}
	if (theForm['tel'].value == ""){
		errMsg = "please fill your telephone";
		setfocus = "['tel']";
	}
	if (theForm['name'].value == ""){
		errMsg = "please fill your name";
		setfocus = "['name']";
	}
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()"); return false;
	}
	else theForm.submit();
}//-->
