function openWin(pagename){
		microsite_window=window.open(pagename,'microsite_window','toolbar=no,location=no,borders=no,directories=no,status=no,menubar=no,scrollbars=no,top=0,left=0,resizable=no,width=10,height=10')
	}
<!-- Begin
var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}
//  End -->
//javascript:newWindow('downloads.asp','','600','420')
	function test(obj,msg) {
		  var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
		  if (regex.test(obj.value))
		  {
			return true;
		  }
		  else{
			alert(msg);
			obj.focus();
			return false;
		  }
		}

	function checkempty(obj,msg)
	{
	 if(obj.value=="")
	 {
	  alert(msg);
	  obj.focus();
	  return false;
	 }
	}
	function checkint(obj,msg)
	{
	 if(isNaN(obj.value))
	 {
	  alert(msg);
	  obj.focus();
	  return false;
	 }
	}
function confirmPassword(obj,obj1,msg)
{
 if(!(obj.value==obj1.value))
 {
  alert(msg);
  obj.focus();
  return false;
 }
}
function isnumber(obj,msg)
{
 if(isNaN(obj.value))
 {
  alert(msg);
  obj.focus();
  return false;
 }
}
	function checksForm()
	{
		if (checkempty(document.frmsearch.txtsearch,"Search Information - Enter Search words")==false) return false;
		return true;
	}
	function checkfForm()
	{
		if (checkempty(document.frmfeed.name,"Contact Information - Enter Name")==false) return false;
		if (test(document.frmfeed.email,"Contact Information - Email Address Is Required")==false) return false;
//		if (checkempty(document.frmfeed.comments,"Contact Information - Enter Comments")==false) return false;
		return true;
	}
	function chkqty()
	{
		if (checkempty(document.frmadd.qty,"Information - Enter Quantity")==false) return false;
		return true;
	}
	function checkicForm()
	{
		if (checkempty(document.frmCon.fname,":::...Enter Your Full Name...:::")==false) return false;
		if (checkempty(document.frmCon.company,":::...Enter Your Company Name...:::")==false) return false;
		if (test(document.frmCon.email,":::...Email Address Is Required...:::")==false) return false;
		return true;
	}
	function checkForm()
	{
		if (checkempty(document.frmcatalogue.name,"Catalogue Information - Enter Your Name")==false) return false;
		if (checkempty(document.frmcatalogue.company,"Catalogue Information - Enter Your Compnay Name")==false) return false;
		if (checkempty(document.frmcatalogue.phone,"Catalogue Information - Enter Your Phone")==false) return false;
		if (test(document.frmcatalogue.email,"Catalogue Information - Email Address Is Required")==false) return false;
		if (checkempty(document.frmcatalogue.mailing,"Catalogue Information - Enter Your Mailing Address")==false) return false;
		return true;
	}
	function checkfeedForm()
	{
		if (checkempty(document.frmfeed.name,"Contact Information - Enter Name")==false) return false;
		if (test(document.frmfeed.email,"Contact Information - Email Address Is Required")==false) return false;
		if (checkempty(document.frmfeed.comments,"Contact Information - Enter Comments")==false) return false;
		return true;
	}
	function checkinqForm()
	{
		if (checkempty(document.form1.txtname,"Inquiry Information - Enter Contact Person Name")==false) return false;
		if (checkempty(document.form1.txtcompany,"Inquiry Information - Enter Company Name")==false) return false;		
		if (checkempty(document.form1.txttel,"Inquiry Information - Enter Your Phone No.")==false) return false;
		if (checkempty(document.form1.txtfax,"Inquiry Information - Enter Your Fax No.")==false) return false;
		if (test(document.form1.txtemail,"Inquiry Information - Email Address Is Required")==false) return false;
		if (checkempty(document.form1.txtaddress,"Inquiry Information - Enter Your Address")==false) return false;
		return true;
	}
	function checkinqForm1()
	{
		if (checkempty(document.form1.fname,"Inquiry Information - Enter Contact Person Name")==false) return false;
		if (checkempty(document.form1.company,"Inquiry Information - Enter Company Name")==false) return false;		
		if (checkempty(document.form1.ph,"Inquiry Information - Enter Your Phone No.")==false) return false;
		if (checkempty(document.form1.fax,"Inquiry Information - Enter Your Fax No.")==false) return false;
		if (test(document.form1.email,"Inquiry Information - Email Address Is Required")==false) return false;
		if (checkempty(document.form1.address,"Inquiry Information - Enter Your Address")==false) return false;
		return true;
	}
	function chksubscribe()
	{
		if (test(document.frmsubscribe.txtsubscribe,"Email Subscribe! - id@domainname.com")==false) return false;
		return true;
	}
	
	
	
	///////////////////////////////////////////////////////////////////////////
// History Go Back
// History Go Forward
// Set as HomePage
// Add Favorite
// Fade in Fadeout animation
// For Search
// No Right Click
// Rain Bow Color
// On Selection of Text
// Open window
// Input Box Color Change
// Form Validation 
// Roll over in Form Page
// Text Box with Limitation
// Search Box Color Change

//////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
// History Go Back
//////////////////////////////////////////////////////////////////////////
// <!-- Will send the browser back one page.Use 0 to reload the current page. -->
// <Script Language="JavaScript"><!-- Begin history.go(1)// End --></Script>

//////////////////////////////////////////////////////////////////////////



/////////////////////////////////////////////////////////////////////////
// History Go Forward
//////////////////////////////////////////////////////////////////////////
// <!-- Will send the browser forward one page.Use 0 to reload the current page. -->
// <Script Language="JavaScript"><!-- Begin history.go(-1)// End --></Script>
//////////////////////////////////////////////////////////////////////////



/////////////////////////////////////////////////////////////////////////
// Set as HomePage
//////////////////////////////////////////////////////////////////////////
// <A href="javascript:history.go(0)" onClick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.YourLink.com');" TARGET="_self">Set As HomePage</A></SCRIPT>
//////////////////////////////////////////////////////////////////////////




/////////////////////////////////////////////////////////////////////////
// Add to Favorite
//////////////////////////////////////////////////////////////////////////
// <A href="javascript:window.external.AddFavorite('http://YourLink.com','Your WebPage Title')">add To Favourites</a>
//////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////
// Fadein Fadeout animation
// <body onLoad="runSlideShow()" > 
// <IMG SRC="images/q_25.jpg" name='SlideShow' WIDTH=532 HEIGHT=182 ALT="">
//////////////////////////////////////////////////////////////////////////
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 10;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/q_25.jpg'
Pic[1] = 'images/ani2.jpg'
Pic[2] = 'images/ani.jpg'



// 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];
}
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);
}

///////////////////////////////////////////////////////////////////////////
// Open window
//////////////////////////////////////////////////////////////////////////
function openwindow(open){
window.open(open,"Popup","toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=550, height=465, top=0, left=0")
}


///////////////////////////////////////////////////////////////////////////
// Input Box Color Change
//////////////////////////////////////////////////////////////////////////
// Created by: Luis O. Hernandez
// Date: 04/21/2001



// Erases contents of search box when users clicks the box or

// when the user submits the form without modifying the search


var formElements = new Array();
	

function focusObject(objElement)

{
	hasChanged = false;
		

	for (i = 0; i < formElements.length; i++)
	
{
		if (formElements[i] == objElement.name)
		
{
			hasChanged = true;
		}
	}
			


		if (!hasChanged)
		{
			objElement.value = "";
			formElements[formElements.length + 1] = objElement.name;
		}
		
	
		objElement.style.background = "#C0C0C0";
}
	

function focusSearchObject(objElement)
{
	objElement.style.background = "#C0C0C0";
}
	
function blurObject(objElement)
	{
		objElement.style.background = "#FFFFFF";
	}


function focussearch()
	
{
		document.msearch.QUERY.focus();
	}


// Hides/shws content area
function changeContent(objSelect)
{
	var strValue = objSelect.checked;
	
	if (strValue == 0)
	
{
		document.getElementById("dynDisplay").style.display = "none";
	
} else {
		document.getElementById("dynDisplay").style.display = "block";
	}
}

function setSkyScraper() {
	if (document.body.offsetWidth > 750) 
{
		document.getElementById("skyscraper").style.visibility = '';

		document.getElementById("skyscraper").style.left = 630;

	} else {
		document.getElementById("skyscraper").style.visibility = 'hidden';
		document.getElementById("skyscraper").style.left = 0;
	}
}


function cleanCAPS(objIncoming) {
	str = objIncoming.value;

	capsallowed = 3; // Lowercase if more than ## CAPS in a row
	
do {
		eval("re = /([A-Z]{" + (capsallowed+1) + ",})/g;");
	
	myArray = str.match(re);
		if (myArray) {
			eval("re = /" + myArray[0] + "/;");

			str = str.replace(re, ""+ myArray[0].substring(0,1) + (myArray[0].substring(1,myArray[0].length)).toLowerCase() );
 		}

	} while (myArray);

	objIncoming.value = str;
}












/**
  * You may use this code for free on any web page provided that 
  * these comment lines and the following credit remain in the code.
  * Multimedia Rollovers from http://www.javascript-fx.com
  */
//Uncomment the next line for random transition rollover each time the page is loaded
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=1, transition='+Math.floor(Math.random()*23)+') }</STYLE>');

//Uncomment the next line for a specific transition rollover (transition=0 to 23)
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=1,transition=2) }</STYLE>');

//Uncomment the next line for fading rollovers
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=1) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}
function turnOn(imgName) 
{ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
} 
function turnOff(imgName) 
{ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].src = document.images[imgName].offSrc;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
} 
Rollover("home",    "images/2_10.jpg");
Rollover("about",    "images/2_12.jpg");
Rollover("products",    "images/2_14.jpg");
Rollover("form",    "images/2_18.jpg");
Rollover("email",    "images/2_20.jpg");
Rollover("contact",    "images/2_16.jpg");
<!--






























///////////////////////////////////////////////////////////////////////////
// Animation
//////////////////////////////////////////////////////////////////////////

var imgsname=new Array()
imgsname[0]="images/p.jpg"
imgsname[1]="images/p2.jpg"
imgsname[2]="images/p3.jpg"
imgsname[3]="images/p4.jpg"
imgsname[4]="images/p5.jpg"



// the links for each image. You MUST add a link for each image




// Configure the speed of the transition effect. Less means faster
var pause=50

// Configure the standstill-time of the images (seconds)
var standstill=2



