function runSlideShow() 
{
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
var slideShowSpeed = 5000;
var crossFadeDuration = 3;
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'images/h4.gif'
Pic[1] = 'images/h4-1.gif'
Pic[2] = 'images/h4-2.gif'
Pic[3] = 'images/h4-3.gif'
//Pic[4] = 'images/h4.gif'
//Pic[5] = 'images/h4.gif'
//Pic[6] = 'images/h4.gif'
//Pic[7] = 'images/7.gif'
//Pic[8] = 'images/8.gif'
//Pic[9] = 'images/9.gif'
//Pic[10] ='images/10.gif'
//Pic[11] ='images/3.gif'
//Pic[12] ='images/12.gif'
// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
//  End -->


function CheckForm () { 

	//Initialise variables
	var errorMsg = "";

	//Check for a first name
if (document.frmEnquiry.firstName.value == ""){
		errorMsg += "\n\الأســم الأول         \t\t- الرجاء ادخال الأسـم";	
	}
if (document.frmEnquiry.lastName.value == ""){
		errorMsg += "\n\اســم العائلة          \t\t- الرجاء ادخال اســم العائلة";	
	}
	
	//Check for an e-mail address and that it is valid
	if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\البريد االالكترومي \t\t- الرجاء ادخال البريد الالكتروني";
	}
			
	//Check for an enquiry
if (document.frmEnquiry.enquiry.value == "") { 
 		errorMsg += "\n\الملاحظات          \t\t- الرجاء ادخال ملاحظاتك";
	}
		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "لم يتم ارسال ملاحظاتك لوجود خطئ في الإدخال .\n";
		msg += " الرجاء التاكد من البيانات المدخلة.\n";
		msg += "______________________________________________________________\n\n";
		msg += " الرجاء التاكد من الحقول التالية: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}


function CheckFormFeedback () { 

	//Initialise variables
	var errorMsg = "";

	//Check for a first name
if (document.frmEnquiry.firstName.value == ""){
		errorMsg += "\n\الأســم الأول         \t\t- الرجاء ادخال الأسـم";	
	}

	//Check for an e-mail address and that it is valid
	if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\البريد االالكترومي \t\t- الرجاء ادخال البريد الالكتروني";
	}
			
	//Check for an enquiry
if (document.frmEnquiry.enquiry.value == "") { 
 		errorMsg += "\n\الملاحظات          \t\t- الرجاء ادخال ملاحظاتك";
	}
		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "لم يتم ارسال ملاحظاتك لوجود خطئ في الإدخال .\n";
		msg += " الرجاء التاكد من البيانات المدخلة.\n";
		msg += "______________________________________________________________\n\n";
		msg += " الرجاء التاكد من الحقول التالية: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}




function popup(link)
	{
	window.open(link,"popup","width=800,height=600,scrollbars=yes,resizable=yes"); 
	}
function popup_news(link)
	{
	window.open(link,"popup","width=570,height=820,menubar=yes"); 
	}
function popup_product(link)
	{
	window.open(link,"popup","width=600,height=800"); 
	}
function popup_accessories(link)
	{
	window.open(link,"popup","width=600,height=420"); 
	}
function popup_skelton(link)
	{
	window.open(link,"popup","width=1000, height=600,scrollbars=yes,resizable=yes"); 
	}


