/**
* Creates a window with an image inside from the parameters passed.
*
* @params string image url
* @params int image width
* @params int image height
* @return void
*/
function showImage( image_url, image_width, image_height ) {

	var oConfig = { 'url': 'about:blank', 'width': image_width, 'height': image_height, 'scroll' : false , 'statusbar' : false};
	
	var oImageWindow = createWindow( oConfig );
	
	try {
	
		oImageWindow.document.write( '<body style="margin: 0px; padding: 0px;"><img src="' + image_url + '" /></body>' );
		oImageWindow.document.close();
	
	} catch( e ) {
		
		oImageWindow.close();
		
	}
}

function CheckSS()
{
	theFrm = document.frmSS;

	hasDot = theFrm.Email.value.indexOf(".");
	hasAt = theFrm.Email.value.indexOf("@");

	if (hasDot == -1 || hasAt == -1)
	{
		alert("Please enter a valid email address.");
		theFrm.Email.focus();
		theFrm.Email.select();
		return false;
	}


	
	valcheck = document.getElementById("Fields[1]");
	if (valcheck.value == "") {
		alert("Please enter a value for the 'Name' field.");
	
		valcheck.focus();
			
		valcheck.select();
			
		return false;
	} else {
	
		var minsize_1 = 2;
			
		var maxsize_1 = 100;
			
		var fieldlength = 0;
			
		fieldlength = valcheck.value.length;
			
		if (fieldlength < minsize_1) {
			
		alert("You must enter a value for the 'Name' field longer than " + minsize_1 + " characters");
			
		valcheck.focus();
			
		return false;
		
	}
	
	if (fieldlength > maxsize_1) {
		
		alert("You must enter a value for the 'Name' field no longer than " + maxsize_1 + " characters");
			
		valcheck.focus();
			
		return false;
			
	}
}

	return true;
}