function preloadC(obj_id,width){
var imgs=document.getElementsByTagName('img');
for(var i=0;i<imgs.length;i++){
if(imgs[i].id.indexOf(obj_id)!=-1){
var new_img=new Image();
new_img.src=imgs[i].src;

var imagewidth=new_img.width;
var imageheight=new_img.height;
var thebiger=imagewidth>imageheight?imagewidth:imageheight;
var b=width/thebiger;
if(thebiger>width){
	imgs[i].width=imgs[i].width*b;
}
}
}
}

function preloadS(obj_id,width,height){
var imgs=document.getElementsByTagName('img');
for(var i=0;i<imgs.length;i++){
if(imgs[i].id.indexOf(obj_id)!=-1){
var new_img=new Image();
new_img.src=imgs[i].src;

imagewidth=imgs[i].width;
imageheight=imgs[i].height;
b=width/imagewidth;
b1=height/imageheight;
if(imagewidth>width&&imageheight>height&&b<b1||imagewidth>width&&imageheight<height){
	imgs[i].width=imgs[i].width*b;
}else if(imagewidth>width&&imageheight>height&&b>b1||imagewidth<width&&imageheight>height){
	imgs[i].height=imgs[i].height*b1;
}
}
}
}

function preImport(){
var xmlhttp1;
if (navigator.userAgent.indexOf("MSIE")==-1)
{
xmlhttp1=new XMLHttpRequest();
}
else if (navigator.userAgent.indexOf("MSIE")>0)
{
xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP");
}
if(xmlhttp1) {
xmlhttp1.onreadystatechange=function() {
if (xmlhttp1.readyState==4)
{
try {
if(xmlhttp1.status==200) {

}else{
alert( xmlhttp1.status+'='+xmlhttp1.statusText);
}
} catch(exception) {
alert(exception);                         
}
}
};
xmlhttp1.open("POST", "http://saas2.nseer.com/saas/index.html", true);
xmlhttp1.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp1.send(null);
} else {        
  alert('Can not create XMLHttpRequest object, please check your web browser.');
}
}