function swapImg(oldImg, newImg) {
	if ( isNS4 || isIE4 || isIE5 || isNew || isNS6up){
   		eval('document.images.' + oldImg +'.src=' + newImg +'.src');
	}
}

// Email Validation. Written by PerlScriptsJavaScripts.com

function check_email(e) {
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

	for(i=0; i < e.length ;i++){
		if(ok.indexOf(e.charAt(i))<0){
		return (false);
		}
	}

	if (document.images) {
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) {
		return (-1);
		}
	}

}

function check_contact_form(f) { // f is the form (passed using the this keyword)
// check the first email address ( the exclamation means "not" )
    var message = 'Please Enter ';

    if(f.name.value == ''){
		alert(message+"Your Name");
		f.name.focus();
	    return false;
	}

	if(!check_email(f.email.value)){
		alert(message+"a valid email address");
		f.email.focus();
	    return false;
	}
}

function showBigImg(bigImg) {
	if ( isNS4 || isIE4 || isIE5 || isNew || isNS6up){
        swapImg('place_holder', 'cg_5_big_on');
//		eval('document.images.place_holder.src= cg_5_big_on.src');
	}
}

